package com.cuit.service.impl;

import com.cuit.dao.RecruitmentDao;
import com.cuit.doamin.Recruitment;
import com.cuit.service.RecruitmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("recruitmentService")
public class RecruitmentServiceImpl implements RecruitmentService {

    @Autowired
    private RecruitmentDao recruitmentDao;

    @Override
    public boolean add(Recruitment recruitment) {

        return recruitmentDao.add(recruitment);
    }

    @Override
    public boolean delete(Integer id) {

        return recruitmentDao.delete(id);
    }

    @Override
    public List<Recruitment> find() {
        return recruitmentDao.find();
    }

    @Override
    public List<Recruitment> findPost() {
        return recruitmentDao.findPost();
    }
}
